//mine.js
const app = getApp()

Page({
  data: {
    avatarUrl: '',
    realName: '',
    accountPhone: ''
  },
  onLoad: function (options) {
    this.setData({
      avatarUrl: app.globalData.userInfo.avatarUrl,
      realName: app.globalData.userInfo.nickName,
      accountPhone: '',
    })
    // Do some initialize when page load.
  },
  onReady: function () {
    // Do something when page ready.
  },
  onShow: function () {
    // Do something when page show.
  },
  onHide: function () {
    // Do something when page hide.
  },
  onUnload: function () {
    // Do something when page close.
  },
  onPullDownRefresh: function () {
    // Do something when pull down
  },
})